import request from '@/utils/request'

export function userTypeList(data) {
  return request({
    url: '/userType',
    method: 'get',
    data
  })
}

export function userTypePost(data) {
  return request({
    url: '/userType',
    method: 'post',
    data
  })
}

export function userTypePatch(data) {
  return request({
    url: `/userType/${data.id}`,
    method: 'patch',
    data
  })
}
